import {Ref} from "vue";

type RefString = Ref<string>

export interface GroupItem {
    groupId: number
    groupName: string
}

export interface ProjectItem {
    project_id: number
    project_name: string
    project_desc: string
    project_cover: string
}

export interface DemandItem {
    demandName: string
    demandDesc: string
}

export interface TaskItem {
    taskName: string
    taskPriority: string
    taskOwner: string
    taskStatus: string
    taskStart: number
    taskEnd: number
}

export interface UseTaskReturn {
    taskName: RefString
    taskPriority: RefString
    taskOwner: RefString
    taskStatus: RefString
    taskTime: Ref<number[]>
    updateTask: (taskList: TaskItem[], index: number, del?: number) => TaskItem[]
    updateTaskItem: (taskList: TaskItem[], index: number) => void
    getTaskItemValue: () => TaskItem
    isQualified: () => boolean
}
